import scala.io.StdIn

object PIexec {
  def main(args: Array[String]): Unit = {
    val i = StdIn.readInt()
    var res = math.sqrt(2)
    for (i <- 0 until i){
      res = math.sqrt(2-math.sqrt(4-res*res))
    }
    println(res)
    val num = math.pow(2,i+1)
    println(num)
    val s = res * num
    println(s)
    println(Math.PI)
  }

}
